<?php

namespace App\Console\Commands;

use Illuminate\Console\Command;
use App\Http\Services\LuckDrawServices;

class WishPoolDayStatisticsPromotion extends Command
{
    protected $signature = 'WishPoolDayStatisticsPromotion';

    protected $description = '许愿池每日统计';

    public function __construct()
    {
        parent::__construct();
    }

    public function handle()
    {
        set_time_limit(0);
        $ymd = date('Y-m-d', strtotime("-1 days"));

        do {
            $wishWheelService = new LuckDrawServices();
            //每日统计
            $wishWheelService->statisticalData($ymd, 1000);
            $wishWheelService->statisticalData($ymd, 1001);

        } while (false);

    }

}